<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../org/angular.min.js"></script>
</head>

<body ng-app="app" ng-controller="ctrl">
    <div>
        <button ng-dblclick="dbl()">双击</button>
        <input type="text" name="" ng-blur="blur()" value="失去焦点">
        <input type="text" name="" ng-focus="f()" value="获得焦点">

        <input type="text" name="" ng-keypress="kp()" value="键盘press">
        <input type="text" name="" ng-keyup="kup()" value="键盘up">

        <input type="text" name="" ng-mousemove="move()" value="mousemove">
    </div>
    <script>
        var m = angular.module('app', []);
        m.controller('ctrl', ['$scope', function($scope) {
            $scope.dbl = function() {
                alert('双击');
            }
            $scope.blur = function() {
                console.log('失去焦点')
            }
            $scope.f = function() {
                console.log('获得焦点');
            }
            $scope.kp = function() {
                console.log('键盘press');
            }
            $scope.kup = function() {
                console.log('键盘up');
            }
            $scope.move = function() {
                console.log('鼠标移动');
            }
        }])
    </script>
</body>

</html>
